Optimal. Leaf size=34 \[ \frac {x^2 \cosh \left (a+b x^2\right )}{2 b}-\frac {\sinh \left (a+b x^2\right )}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5428, 3377,
2717} \begin {gather*} \frac {x^2 \cosh \left (a+b x^2\right )}{2 b}-\frac {\sinh \left (a+b x^2\right )}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rule 5428
Rubi steps
\begin {align*} \int x^3 \sinh \left (a+b x^2\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int x \sinh (a+b x) \, dx,x,x^2\right )\\ &=\frac {x^2 \cosh \left (a+b x^2\right )}{2 b}-\frac {\text {Subst}\left (\int \cosh (a+b x) \, dx,x,x^2\right )}{2 b}\\ &=\frac {x^2 \cosh \left (a+b x^2\right )}{2 b}-\frac {\sinh \left (a+b x^2\right )}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 31, normalized size = 0.91 \begin {gather*} \frac {b x^2 \cosh \left (a+b x^2\right )-\sinh \left (a+b x^2\right )}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 45, normalized size = 1.32
method | result | size |
risch | \(\frac {\left (x^{2} b -1\right ) {\mathrm e}^{x^{2} b +a}}{4 b^{2}}+\frac {\left (x^{2} b +1\right ) {\mathrm e}^{-x^{2} b -a}}{4 b^{2}}\) | \(45\) |
meijerg | \(-\frac {\sinh \left (a \right ) \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cosh \left (x^{2} b \right )}{2 \sqrt {\pi }}-\frac {x^{2} b \sinh \left (x^{2} b \right )}{2 \sqrt {\pi }}\right )}{b^{2}}+\frac {\cosh \left (a \right ) \left (\cosh \left (x^{2} b \right ) x^{2} b -\sinh \left (x^{2} b \right )\right )}{2 b^{2}}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 81 vs.
\(2 (30) = 60\).
time = 0.26, size = 81, normalized size = 2.38 \begin {gather*} \frac {1}{4} \, x^{4} \sinh \left (b x^{2} + a\right ) - \frac {1}{8} \, b {\left (\frac {{\left (b^{2} x^{4} e^{a} - 2 \, b x^{2} e^{a} + 2 \, e^{a}\right )} e^{\left (b x^{2}\right )}}{b^{3}} - \frac {{\left (b^{2} x^{4} + 2 \, b x^{2} + 2\right )} e^{\left (-b x^{2} - a\right )}}{b^{3}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 29, normalized size = 0.85 \begin {gather*} \frac {b x^{2} \cosh \left (b x^{2} + a\right ) - \sinh \left (b x^{2} + a\right )}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 36, normalized size = 1.06 \begin {gather*} \begin {cases} \frac {x^{2} \cosh {\left (a + b x^{2} \right )}}{2 b} - \frac {\sinh {\left (a + b x^{2} \right )}}{2 b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{4} \sinh {\left (a \right )}}{4} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 73 vs.
\(2 (30) = 60\).
time = 0.45, size = 73, normalized size = 2.15 \begin {gather*} \frac {{\left (b x^{2} + a - 1\right )} e^{\left (b x^{2} + a\right )} + {\left (b x^{2} + a + 1\right )} e^{\left (-b x^{2} - a\right )}}{4 \, b^{2}} - \frac {a e^{\left (b x^{2} + a\right )} + a e^{\left (-b x^{2} - a\right )}}{4 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 28, normalized size = 0.82 \begin {gather*} -\frac {\mathrm {sinh}\left (b\,x^2+a\right )-b\,x^2\,\mathrm {cosh}\left (b\,x^2+a\right )}{2\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________